import {pageList,months} from './enum'

/**
 * 获取月份名
 * @param id
 * @returns {*}
 */
export function getMonthDetailById(id) {
  if(months.filter(item => item.id == id)[0]){
    return months.filter(item => item.id == id)[0].detail;
  }else {
    return "/";
  }
}

/**
 * 获取页面名
 * @param id
 * @returns {*}
 */
export function getPageNameById(id) {
  if(pageList.filter(item => item.id == id)[0]){
    return pageList.filter(item => item.id == id)[0].detail;
  }else {
    return "未知";
  }
}